home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / sgml / sgml2latex-format.1.3.tar.Z / sgml2latex-format.1.3.tar / rep / addrlst / mailmerge / mapping < prev   
Text File  |  1993-07-23  |  2KB  |  79 lines

  1.  
  2. % addrlst replacement file, for mail merge using LaTeX
  3.  
  4. % generates a Bourne shell script for creating a PostScript file for 
  5. % for each entry in the addrlst.
  6.  
  7. % TO DO:
  8. %
  9. %    1. Use list field to print the letter for just those entries in
  10. %       a particular distribution list.
  11. %       2. Change implementation so that a single LaTeX file is created 
  12. %       for the whole distribution list.  A single print job should be
  13. %       sent for the whole list, rather than one per letter.
  14.  
  15.  
  16. % BUG:   In the current hack, a postscript file for each letter is placed
  17. % in the "/home/thomas/tmp/letters".
  18.  
  19. % author: Tom Gordon
  20. % date  : 23 July 92
  21. % last modified : 30 July 92
  22.  
  23. <addrlst>    +    "rm -f /home/thomas/tmp/letters/*\n"
  24.             "let i=1"            +
  25. </addrlst>
  26.  
  27. <entry>        +    "cat <<End > recipient.sgml"    +
  28. </entry>    +    "End\n"
  29.             "format $1 | qtex > /home/thomas/tmp/letters/l$i.ps\n"
  30.             "let i=i+1"        +
  31.  
  32. <alias>        +    "<!-- "                +
  33. </alias>    +    "-->"                +
  34.  
  35. <title>        +    "<!entity title \""
  36. </title>        "\">"                +
  37.  
  38. <name>      +    "<!entity name \""
  39. </name>             "\">"                +
  40.  
  41. <line>        
  42. </line>                "&nl"                +
  43.  
  44. <pobox>
  45. </pobox>        "&nl"                +
  46.  
  47. <street>    
  48. </street>        "&nl"                +
  49.  
  50. <city>
  51. </city>            "&nl"                +
  52.  
  53. <country>
  54. </country>        "&nl"                +
  55.  
  56. <address>     +    "<!entity to \"\n"
  57.             "<to>&title; &name\n"
  58.             "<address> "            +
  59. </address>        "\">"                +
  60.  
  61. <email>        +    "<!-- "            +
  62. </email>    +    "-->"            +
  63.  
  64. <tel>        +    "<!-- "            +
  65. </tel>        +    "-->"            +
  66.  
  67. <telex>        +    "<!-- "            +
  68. </telex>    +    "-->"            +
  69.  
  70. <fax>        +    "<!-- "            +
  71. </fax>        +    "-->"            +
  72.  
  73. <notes>        +     "<!-- "              +
  74. </notes>    +     "-->"            +
  75.  
  76. <date>        +    "<!-- "            +
  77. </date>        +    "-->"            +
  78.  
  79.